﻿using System.Diagnostics;

namespace Tools {
    public class Debuger {
        /// <summary>
        /// 是否打印
        /// </summary>
        public static bool IsPrint = true;

        public static void Println(object val) {
            if (IsPrint) {
                Debug.WriteLine(val);
            }
        }

        public static void PrintlnByJson(object val) {
            if (IsPrint) {
                Debug.WriteLine(JsonHelper.SerializeObject(val));
            }
        }

    }
}
